import aw17 from '@dfeidao/fd-aw000017';
import aw23 from '@dfeidao/fd-aw000023';
import aw4 from '@dfeidao/fd-aw000004';
import p01 from './p01';
import p02 from './p02';
import { router001 } from '../../atom/config';

export default async function a001(fd: aw4) {
	// html渲染
	// 调用Node.js服务
	const raw17 = await (() => {
		const service_name = 'pg001/zj-001/s001';	// 服务名（路径）
		const condition = { sort: 'desc' };	// 服务参数
		return aw17<string[]>(service_name, condition);
	})();

	aw23(fd, raw17, p01, 'p01', 'inner'); // "after" | "before" | "firstin" | "lastin" | "replace" | "inner"
	aw23(fd, router001, p02, 'p02', 'inner'); // "after" | "before" | "firstin" | "lastin" | "replace" | "inner"
}
